import java.util.Scanner;
public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String[] s = new String[n];
        for (int i = 0; i < n; i++) {
            s[i] = scanner.nextLine();
        }

        Solution2 solution = new Solution2();
        System.out.println(solution.finalValueAfterOperations(s));
    }
}

class Solution2 {
    public int finalValueAfterOperations(String[] operations) {
        int res = 0;
        for (String s: operations){
            if(("--X").equals(s) || ("X--").equals(s)){
                res--;
            }else{
                res++;
            }
        }
        return res;
//        int n = operations.length;
//        int sum1 = 0;
//        int sum2 = 0;
//        for (int i = 0; i < n; i++) {
//            int m = operations[i].length();
//            char[] arr = operations[i].toCharArray();
//            for (int j = 0; j < m; j++) {
//                if(arr[j] == '-'){
//                    sum1++;
//                } else if (arr[j] == '+') {
//                    sum2++;
//                }
//            }
//        }
//        return (sum1 * -1 + sum2) / 2;
    }
}